import request from '@/utils/request'

// 获取路由
export const getRouters = (data) => {
  return request({
    url: '/zy-api/api/sysMenu/findMenus',
    method: 'post',
    data: data
  })
}

// 收藏夹列表
export function collectList(data) {
  return request({
    url: '/zy-api/api/favorites/getFavoritesList',
    method: 'post',
    data: data
  })
}

// 收藏菜单
export function addCollect(data) {
  return request({
    url: '/zy-api/api/favorites/collectionMenu',
    method: 'post',
    data: data
  })
}

// 顶部菜单
export function findTopMenu(data = {}) {
  return request({
    url: '/zy-api/api/sysMenu/findTopMenus',
    method: 'post',
    data: data
  })
}

